package com.penghaisoft.microwms.producthand.web.conf;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Configuration;

@Configuration
@AutoConfigureAfter(MybatisConfig.class)
@MapperScan("com.penghaisoft.microwms.*.dao")
public class MybatisMapperScannerConfig {
	public MapperScannerConfigurer mapperScannerConfigurer() {
		MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
		mapperScannerConfigurer.setSqlSessionFactoryBeanName("sqlSessionFactory");
//		mapperScannerConfigurer.setBasePackage("cn.elvinle.dao.mapper");
		mapperScannerConfigurer.setBasePackage("com.penghaisoft.microwms.*.dao");
		return mapperScannerConfigurer;
	}
}
